package com.joysuch.wwyt.bp.enums;

/**
 * 企业基础信息-经济类型小类
 * @Author ZhangDong
 * @Date 2021/1/18 17:13
 */
public enum EconomicTypeSmall {

    GYQZ("A01", "国有全资"),
    JTQZ("A02", "集体全资"),
    GFHZ("A03", "股份合作"),
    LY("A04", "联营"),
    YXZRGS("A05", "有限责任(公司)"),
    QTYXZRGS("A06", "其他有限责任(公司)"),
    GFYXGS("A07", "股份有限(公司)"),
    SY("A08", "私有"),
    GTGSH("A09", "个体工商户"),
    QTNZ("A10", "其他内资"),
    NDHGATHZ("B01", "内地和港、澳或台合资"),
    NDHGATHZZ("B02", "内地和港、澳或台合作"),
    GATDZ("B03", "港、澳或台独资"),
    GATTZGFYXGS("B04", "港、澳或台投资股份有限(公司)"),
    QTGATTZ("B05", "其他港澳台投资"),
    ZWHZ("C01", "中外合资"),
    ZWHZZ("C02", "中外合作"),
    WZ("C03", "外资"),
    GWTZGFYXGS("C04", "国外投资股份有限(公司)"),
    QT("D01", "其他");

    private String code;
    private String type;

    EconomicTypeSmall(String code, String type) {
        this.code = code;
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public static String getCodeByType(String type) {
        EconomicTypeSmall[] values = EconomicTypeSmall.values();
        for (EconomicTypeSmall value : values) {
            if (value.type.equals(type)) {
                return value.code;
            }
        }
        return null;
    }

}




